package com.java.androidmarket.dao;

import com.java.androidmarket.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * author:张腾
 * date:2021-04-27
 */

@Mapper
public interface StarDao {

    List<Goods> getStarGoods(int userId);

    int getStarCount(int userId);

    int ifStar(@Param("userId") int userId, @Param("goodsId") int goodsId);

    void addStar(@Param("userId") int userId, @Param("goodsId") int goodsId);

    void delStar(@Param("userId") int userId, @Param("goodsId") int goodsId);
}
